package com.mldong.modules.sys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mldong.modules.sys.entity.TaskExecutionQueue;
import com.mldong.modules.sys.enums.TaskExecutionQueueStateEnum;
import com.mldong.modules.sys.vo.TaskExecutionQueueVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 待执行任务队列 Mapper 接口
 * </p>
 *
 * @author mldong
 * @since 2025-10-12
 */
@Mapper
public interface TaskExecutionQueueMapper extends BaseMapper<TaskExecutionQueue> {
    List<TaskExecutionQueueVO> selectCustom(IPage<TaskExecutionQueueVO> page, @Param(Constants.WRAPPER) Wrapper<TaskExecutionQueue> wrapper);
    TaskExecutionQueueVO findById(@Param("id") Long id);

}
